package com.oyb.service;

import com.oyb.dao.AdminDao;
import com.oyb.entity.Admin;

public class AdminServies {
    private AdminDao adminDao = new AdminDao();

    public Admin login(String uname,String pword){
        Admin admin = adminDao.queryadmin(uname, pword);

        return admin;
    }

    public int register(Admin admin){
        int result = adminDao.insertAdmin(admin);
        return result;
    }
    public int upadmin(Admin admin){
        int result = adminDao.upAdmin(admin);
        return result;
    }
}
